package com.xpxrule.dataobject.dao;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.util.Date;

/**
 * @version 1.0
 * @Author xiangpengxiang
 * @Date 2024/11/20 14:25
 * @注释
 */
@Data
@TableName("model_item")
public class ModelItem {
    public static final class COLUMN {
        public static final String ID = "id";
        public static final String MODEL_KEY = "model_key";
        public static final String FIELD_NAME = "field_name";
        public static final String FIELD_KEY = "field_key";
        public static final String FIELD_VALUE_TYPE = "field_value_type";
        public static final String FIELD_TYPE = "field_type";
        public static final String DESCRIPTION = "description";
        public static final String IS_DELETED = "is_deleted";
        public static final String IS_ENABLE = "is_enable";
    }
    /**
     * 主键id
     */
    @TableField("id")
    private Long id;
    /**
     * 模型key
     */
    @TableField("model_key")
    private String modelKey;
    /**
     * 字段名称
     */
    @TableField("field_name")
    private String fieldName;
    /**
     * 字段key
     */
    @TableField("field_key")
    private String fieldKey;
    /**
     * 字段取值类型（基础数据类型、自定义数据类型、常量）
     */
    @TableField("field_value_type")
    private String fieldValueType;
    /**
     * 字段类型(整型、字符串、布尔，枚举、浮点数等)
     */
    @TableField("field_type")
    private String fieldType;
    /**
     * 描述
     */
    @TableField("description")
    private String description;
    /**
     * 是否删除
     */
    @TableField("is_deleted")
    private Date isDeleted;
    /**
     * 是否启用
     */
    @TableField("is_enable")
    private short isEnable;
    /**
     * 创建人
     */
    @TableField("create_user")
    private String createUser;
    /**
     * 创建时间
     */
    @TableField("create_time")
    private Date createTime;
    /**
     * 更新人
     */
    @TableField("update_user")
    private String updateUser;
    /**
     * 更新时间
     */
    @TableField("update_time")
    private Date updateTime;
}
